<?php 

use Pinenut\Config;
/*
 * Created by ITokarev
 * 
 * Конфигурация для модуля EmailDelivery
 */

class EmailDeliveryConfig extends Config
{
	const SEND_TEMPLATE = 'SEND_TEMPLATE';

	const TEMPLATE_TYPE_RECOVERY = 'TEMPLATE_TYPE_RECOVERY';
	const TEMPLATE_TYPE_EMAIL_VERIFY = 'TEMPLATE_TYPE_EMAIL_VERIFY';

	public static $config = [
		'workersActionMap' => [
			self::SEND_TEMPLATE => 'emailDelivery.workers.sendTemplate',
		],

		'templateTypes' => [
			self::TEMPLATE_TYPE_RECOVERY => [
				'title' => 'Recovery',
				'isActive' => true,
				'action' => 'emailDelivery.templates.recovery.template',
				'defaultAddressFrom' => 'some@mail.dom',
				'defaultParams' => [
					'email' => '@email@',
					'userId' => '@userId@'
				],
			],
			self::TEMPLATE_TYPE_EMAIL_VERIFY => [
				'title' => 'Email Verify',
				'action' => 'emailDelivery.templates.emailVerify.template',
				'defaultAddressFrom' => 'some@mail.dom',
				'defaultParams' => [
					'email' => '@email@',
					'userId' => '@userId@'
				],
			],
		]
	];
}